package com.wn.bank.access.api.fallback;

import com.wn.bank.access.api.TradeLogApi;
import com.wn.sddfp.common.model.dto.bank.BankCardAddDTO;
import com.wn.sddfp.common.model.dto.bank.BaseResult;
import com.wn.sddfp.common.model.dto.bank.SignatureDto;
import com.wn.sddfp.common.model.dto.borrow.BorrowSyncRecordVo;
import com.wn.sddfp.common.model.result.Result;
import org.springframework.stereotype.Component;

/**
 * @author yellow Docter
 * @date 2024-08-01
 * @desc 蜗牛创想：www.woniuxy.com
 */
@Component
public class TradeLogApiFallBack implements TradeLogApi {
    @Override
    public SignatureDto proxyBindCardLog(BankCardAddDTO bankCardAddDTO) {
        return null;
    }

    @Override
    public Result test01(Integer id) {
        return Result.ok("服务降级....");
    }

    @Override
    public Result<BaseResult> syncBorrowRecord(BorrowSyncRecordVo borrowSyncRecordVo) {
        BaseResult baseResult = new BaseResult();
        baseResult.setRespCode("服务降级的字符串");
        baseResult.setRespMsg("成功");
        baseResult.setStatus(1);
        baseResult.setRequestNo("Fail");
        return Result.ok(baseResult);
    }

}
